define(['sw'],(res)=>{
    var swiper = new res(".mySwiper", {
        spaceBetween: 30,
        // 循环
        slidesPerView: 1,
        loop: true,
        centeredSlides: true,
        autoplay: {
            // 间隔时间
          delay: 3000,
          disableOnInteraction: false,
        },
        pagination: {
          el: ".swiper-pagination",
          clickable: true,
        },
        navigation: {
          nextEl: ".swiper-button-next",
          prevEl: ".swiper-button-prev",
        },
      });
});